import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useChannelStore = defineStore('channel', () => {
  // 频道id变量
  const channelId = ref(0)

  // 修改id函数
  const changeId = (id: number) => {
    channelId.value = id
  }
  return { channelId, changeId }
})
